#pragma once
#include<stdio.h>
#include<assert.h>
#include<stdbool.h>
#include<stdlib.h>

typedef int tydata;

typedef struct tream {
	tydata top;
	tydata* tr;
	tydata capa;
}tream;

typedef struct que {
	tydata tail;
	tydata front;
}queue;

tream* initial(queue** qu);

void destory(queue** qu,tream* tre);

void pushque(queue** qu, tream* tre, tydata x);

void popque(queue** qu,tream* tre);

bool judgeempty(queue* qu);

tydata gettail(queue* qu, tream* tre);

tydata getfront(queue* qu, tream* tre);

tydata sizeofque(queue* qu);
